package com.study.authority;

public class TestSuper {
    public static void main(String[] args) {
        U u = new U();
        K k = new K();
        k.show();
        k.eat();
    }
}
class W{
    int a;
    int b;
    W(){
        System.out.println("W的无参构造器");
    }
    W(int a){
        System.out.println("W的有参构造器1");
    }
}
class U extends W{
    int c;
    U(){
        super(1);
    }
    U(int c){
        System.out.println(32);
    }
}


class F{}
class K extends F{
    int a;
    static double b = 34.43;
    K(){
        System.out.println(234);
        //this(1);
    }
    K(int a){
        this.a = a;
    }
    void show(){
        System.out.println(this.a);
    }
    void eat(){
        this.show();
        System.out.println(this);
    }
}